package com.toweave.starter.beans;

import com.toweave.starter.R;

public class CityBean extends BaseBean {
  public int icon;
  public String name;
  public String desc;

  public CityBean(int icon, String name, String desc) {
    this.icon = icon;
    this.name = name;
    this.desc = desc;
  }

  private static final int[] iconArray = {
      R.drawable.ic_launcher_foreground,
      R.drawable.ic_launcher_foreground,
      R.drawable.ic_launcher_foreground,
      R.drawable.ic_launcher_foreground,
  };

  private static final String[] nameArray = {"北京", "上海", "广州", "深圳"};

  private static final String[] descArray = {"北京 0", "上海 1", "广州 2", "深圳 3"};

  public static CityBean[] getCityBeans() {
    CityBean[] cityBeans = new CityBean[4];
    for (int i = 0; i < 4; i++) {
      cityBeans[i] = new CityBean(iconArray[i], nameArray[i], descArray[i]);
    }
    return cityBeans;
  }
}
